package com.mu.securitysso.dao;

import com.mu.securitysso.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 用户信息查询
 * @author sht
 */
@Mapper
public interface UserDao {

    /**
     * 根据用户名获取用户
     * @param name
     * @return
     */
    @Select(value = "SELECT su.* FROM s_user su WHERE su.name = #{name}")
     User findUserByName(String name);
}
